<template>
  <div class="lunbotu">
    <mt-swipe :auto="3000">
      <!-- 将来 , 谁使用此 轮播图组件 , 谁为我们传递 lunbotulist -->
      <!-- 此时 , lunbotulist 应该是 父组件向子组件传值来设置 -->
      <mt-swipe-item v-for="item in lunbotuList" :key="item.id">
        <img :src="item.img === undefined ? item.src : item.img" :class="{ full : isfull }">
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>
<script>
export default {
  props: ["lunbotuList", "isfull"]
};
</script>
<style lang="scss" scoped>
.lunbotu {
  height: 100%;
  .mint-swipe {
    height: 100%;
    .mint-swipe-item {
      text-align: center;
      img {
        height: 100%;
      }
    }
  }
}
.full {
  width: 100%;
}
</style>
